$ dpkg -c package_file.deb # -c = –contents
Category: Debian
-
how to list files of a Debian package (without installing it)?
-
the Debian Linux distribution and packaging management-related software: dpkg, APT, …
- https://en.wikipedia.org/wiki/Category:Linux_package_management-related_software
- https://en.wikipedia.org/wiki/dpkg – “the software at the base of the package management system in the free operating system Debian and its numerous derivatives”
- https://en.wikipedia.org/wiki/APT_(Debian)
- – “APT was originally designed as a front-end for dpkg …, but …”
-
“Oracle Linux Server” as VirtualBox guest OS: a few administrational experiences
There is a VM appliance, that I run …, and that appliance uses Oracle Linux Server as its OS.
I want the appliance’s hostname to be oracle000 – it’s going to be my Oracle Databaser server anyway.
Q: The appliance’s network connection to outside – how to activate it?
Initially the appliance’s network connection seems to be down – what’s wrong? The “Terminals” on the top bar let you activate the connection. BTW: By default this is a NAT connection – so accessing the appliance network-wise from outside is a bit weird – but we are going to replace the NAT set-up with a “more natural” one in a minute.
Q: How to access the appliance at its own IP address from within the LAN or even further outside?
Within “Oracle VM VirtualBox Manager” I set this VM Network Adapter’s “Attached to” to “Bridged Adapter“. Now my LAN’s DHCP server (i.e. the router) assigns an IP address on the LAN to the VM, and actually I told the router to always use the same IP addresss, and I also named the network device there oracle000.
Q: ssh w/o account name from within the appliance to outside and from outside the appliance into it
If you do not mention an account with the ssh command, it assumes you want to reach an account by the same name on the remote side. But you are able to configure another account name on a particular remote host via an entry in a local ssh related file: $HOME/.ssh/config . You can do that on the appliance for reaching other hosts; you can do that on the other hosts around in order to reach the appliance’s main account oracle.
This is one of the possible kinds of entries on $HOME/.ssh/config :
Host 10.0.2.2 User xyz
Q: rsync over ssh
Add this to $HOME/.bash_profile :
export RSYNC_RSH=ssh
Q: installing my favourite tools
My VM host has a couple of handy utilities, that I am always eager to install:
$ ssh 10.0.2.2 # logging into the VM host … $ rsync -va 10.0.2.2:bin $HOME $ rsync -va 10.0.2.2:Computers $HOME
Q: How to adapt the timezone to e.g. Europe/Berlin?
A: Make /etc/localtime a symlink to the right file below /usr/share/zoneinfo/ !Timezone-wise the appliance runs in EST, and I want it to run in Europe/Berlin:
- https://wiki.debian.org/TimeZoneChanges – this page told me, the timezone is determined by /etc/localtime
$ ~/bin/create_snapshot.sh /etc/localtime $ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
Q: ssh into the appliance w/o password – … .ssh/authorized_keys …
You should know this in advance: Oracle Linux Server makes use of SELinux. That makes it safe but also complicated.
The home directory of user oracle is /u01/oracle – for SELinux that is a non-standard directory, and although I attempted to follow this page WRT an extra file to be created within
/etc/selinux/targeted/modules/activeby the name offile_contexts.local, I did not succeed.If you want to switch SELinux off temporarily, this is how to achieve this:
$ echo 0 > /selinux/enforce
With SELinux turned off, ssh into the appliance works as expected.
Q: Suppplying the appliance with the hosts’s VirtualBox Guest Additions
The ones installed in the appliance are older then the manager software installed on the host and that seems to cause trouble.
First I thought, I should remove the old addtions before getting the up-to-date one installed, but later I got the impression the installation process removes old additions. But here I am going to describe how I manually removed the old additions:
Apparently they do not come as RPM, so it’s impossible to get hold on them in one go. I created an extra hierarchy /etc/rc.d-QUARANTINE, and I moved all start-up scripts and links to within there. …How to install the host’s up-to-data …/VBoxGuestAdditions.iso? Add the ISO to a SATA Storage Controller Controller. After booting into the appliance:
$ cd /media/VBOXADDITION* $ sudo ./VBoxLinuxAdditions.run
That process announced it cleans up earlier installations.
Now after rebooting the appliance the appliance’s window on the host scales perfectly, i.e. resizing the host window also resizes the X-Window server details – everything is fine there now.
Q: …
…
-
the usual commands for updating your Raspbian installation
$ sudo raspi-config … $ sudo apt-get upgrade $ sudo apt-get update
- http://shop.oreilly.com/product/0636920023371.do – Getting Started with Raspberry Pi
- http://shop.oreilly.com/product/0636920029595.do – RPi Cookbook
- http://shop.oreilly.com/product/0636920029083.do – RPi Hacks
- http://shop.oreilly.com/product/9781849694605.do – (PacktPub) RPi Networking Cookbook
- http://www.packtpub.com/raspberry-pi-networking-cookbook/book
- http://www.packtpub.com/raspberry-pi-media-center/book
- http://www.packtpub.com/raspberry-pi-server-essentials/book
- https://en.wikipedia.org/wiki/APT_(Debian)
- – the “Advanced Package Tool” for Debian
-
on openSUSE I am using LUKS (= Linux Unified Key Setup) for disk encryption, is that available on Debian resp. on Raspbian?
Linux Unified Key Setup – Wikipedia, the free encyclopedia.
- http://www.raspberrypi.org/phpBB3//viewtopic.php?f=63&t=26691
- http://www.raspberrypi.org/phpBB3//search.php?keywords=luks
- https://duckduckgo.com/?q=raspbian+luks
- …
-
Debian Linux: administration, package management, …
The “Raspberry Pi” is my second encounter with Debian, ASUS’s early “Eee PC” was the first. I need to refresh and extend my knowledge there.- wiki.debian.org – as always: prefer the wiki over “offline maintained documentation“
- wiki.debian.org/SystemAdministration
- wiki.debian.org/Locale
- …
- http://www.debian.org/doc/manuals/
- …
- http://www.debian.org/doc/manuals/debian-reference/
- http://www.debian.org/doc/manuals/debian-reference/ch02.en.html : Debian package management: dpkg-*, *-apt-*, aptitude, synaptic, …
- …
- http://www.debian.org/doc/manuals/refcard/
- http://www.debian.org/doc/manuals/refcard/refcard.en.pdf
- …
- http://en.wikipedia.org/wiki/Advanced_Packaging_Tool – the APT collection of tools: *-apt-*, aptitude, synaptic, …
- http://en.wikipedia.org/wiki/dpkg – the software at the base of the Debian package management system: dpgk-*
- …
- http://manpages.debian.net/cgi-bin/man.cgi?query=dpkg
- http://manpages.debian.net/cgi-bin/man.cgi?query=apt
- …
-
“Getting Started with Java SE Embedded on the Raspberry Pi” (by Bill Courington and Gary Collins)
http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html by Bill Courington and Gary Collins
It includes a lot of useful Linux tweaks, that you may want to apply apart from installing Java SE anyway.
Resize the SD Card Partitions:
About half the card’s space is unallocated. The biggest chunk of free space follows the /dev/sdb3 partition. To add this space to /dev/sdb2 (the file system), we temporarily delete /dev/sdb3, extend /dev/sdb2, then re-create /dev/sdb3.
I started making use of the “Java SE” label with this article. Should apply it elsewhere as well.
It has a section “Optional Linux Tuning and Tweaking“:
- Set Up Static IP Address
- Enable Swapping and Optimize File System Access Time
- Set Time Zone and Locale
- Set Up a Time Server
- Set Up an Internet Proxy
- Remap the Keyboard
- Update Debian Packages
- Automatically Start the Graphical User Interface
- Add a Different Web Browser
- Enable Sound
Do I really want to swap on the SD card? They discourage it there. -
purchased my 1st “Raspberry Pi” “Model B” last (Friday) night
- http://en.wikipedia.org/wiki/Raspberry_Pi
- Conrad @ Berlin, Schöneberg [link]
- http://en.wikipedia.org/wiki/Debian_Wheezy
- http://www.raspberrypi.org/
I found a cooperative employee at the Conrad branch, who got me all the things I needed, including Wheezy on an SD card. But I didn’t know, how and which monitor I would attach, so that’s what I have to solve on my 2nd related visit at the shop. I am rather hot to see it booting soon.Unnecessary:
- I should not have purchased the mega-sized AVM wifi dongle.
- I should have found out before (at least before getting the converter), how to connect the Pi to monitors.
Update 2013-12-08:
- got me more HDMI-DVI-adpaters yesterday, with cables,
- should have gotten me a USB hub as well, as there are only 2 USB plugs,
- well, the USB mouse went into the (playstation2) keyboard,
- the EDIMAX wifi dongle found its plug,
- got it booted,
- got it connected via LAN to the Internet,
- got wifi set up through WPS.
- had to stop my experiments in favour of son#2.
This IS different to KDE and GNOME:- (apparently) you cannot set up the date/time format centraly,
- even not the timezone.
- you also cannot set up the virtual desktops in a grid.
- …
But it IS Linux / Unix, and it is X-Windows, and it connects to the Internet, and there is a modern browser, …- I created a separate “bookmark article” on Java SE on the Raspberry Pi, cf. the “Raspberry Pi” label on this blog
-
Debian passes CentOS as most popular Linux for web servers
Debian passes CentOS as most popular Linux for web servers: During the last year, Debian GNU/Linux and CentOS were the most popular Linux distributions on web servers
[…]