Linux
Primarily Debian based like Ubuntu
Video Card drivers do not display in Install Additional Drivers dialog
daniel Tue, 10/21/2014 - 9:04am
I had to use the suggestion from this page on devtalk.nvidia.com to do the following:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get dist-upgrade
From there, you ought to see the driver show up in the Additional drivers dialog
Add rule to Iptables on Centos
daniel Thu, 07/31/2014 - 12:00pm
You can view the rules in place with:
iptables -vnL --line-numbers
You add them by either interacting with the command line such as:
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -s 10.10.0.1 -j ACCEPT
Removing by:
iptables -D INPUT 13
or update the file at /etc/sysconfig/iptables
and then restart iptables:
If you edited the state with the command line, you'll need to save before restarting
service iptables restart
References
- Read more about Add rule to Iptables on Centos
- Log in to post comments
Process for reinstalling Grub from LiveCD
daniel Thu, 06/26/2014 - 11:28am
From Beacon11 on UbuntuForums
# Mount root partition:
sudo mount /dev/sdXY /mnt # /dev/sdXY is your root partition, e.g. /dev/sda1
# If you have a separate boot partition you'll need to mount it also:
sudo mount /dev/sdYY /mnt/boot
# Mount your virtual filesystems:
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
# Chroot
sudo chroot /mnt
And then from Terdon on StackExchange
sudo grub-mkconfig > /boot/grub/grub.cfg
sudo grub-install /dev/sda
- Read more about Process for reinstalling Grub from LiveCD
- Log in to post comments
How to get installed packages without using dpkg -l
daniel Thu, 06/12/2014 - 10:26am
From Superuser.com
root@backup_server /mnt/old_root/var/lib/dpkg/info # ls -la *.list | awk {'print $9'}| sed 's/.list//' >> /root/installed_app
Can you access a software raid drive from an ubuntu live cd / image?
daniel Thu, 06/12/2014 - 10:17am
Yes!
From askubuntu.com
sudo apt-get install mdadm
sudo mdadm --assemble --scan
After running those two commands in the terminal, you should be able to mount the drive as usual (either by clicking in the file manager, or by using the mount command)
Securely erase a hard drive in linux
daniel Thu, 06/12/2014 - 10:15am
From askubuntu.com
You can use:
sudo shred -v /dev/sdb
- Read more about Securely erase a hard drive in linux
- Log in to post comments
Upgrading from Ubuntu to Ubuntu Gnome
daniel Mon, 05/19/2014 - 9:29pm
From Ubuntu Gnome Wiki
sudo apt-get install ubuntu-gnome-deskop
dpkg will prompt asking which display manager you want to use, select 'gdm'
- Read more about Upgrading from Ubuntu to Ubuntu Gnome
- Log in to post comments
Copying files with spaces in their names with xargs
daniel Fri, 05/02/2014 - 5:56pm
When using xargs, you will eventually run into a file that contains spaces or quotes in its name.
Troubleshooting ssh connections
daniel Fri, 05/02/2014 - 5:52pm
Including bad permissions on the server's user directory:
- Read more about Troubleshooting ssh connections
- Log in to post comments
Import OpenSSL certificate into java keystore on Ubuntu
daniel Mon, 04/21/2014 - 11:28am
First Step:
Convert the cert into a Java Keystore:
openssl pkcs12 -export -name mycert.local -in /etc/ssl/certs/mycert.local.cert -inkey /etc/ssl/private/mycert.local.key -out mycert.local.keystore.p12
Second Step:
Import the new keystore (Using the primary java keystore of an Oracle Java install on Linux here:
keytool -importkeystore -srckeystore mycert.local.keystore.p12 -destkeystore /usr/lib/jvm/default-java/jre/lib/security/cacerts -srcstoretype pkcs12
