BowerStudios.com

  • My Lab
  • Family
  • Friends
  • Professional
  • About
Home » The Lab

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

  • Linux
  • Read more about Video Card drivers do not display in Install Additional Drivers dialog
  • Log in to post comments

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

  • Working with IP Tables
  • Delete a single rule
  • How to restart iptables
  • Linux
  • 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

  • Linux
  • 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

  • Linux
  • Read more about How to get installed packages without using dpkg -l
  • Log in to post comments

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)

  • Linux
  • Read more about Can you access a software raid drive from an ubuntu live cd / image?
  • Log in to post comments

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

  • Linux
  • 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'

  • Linux
  • 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.

from stackoverflow.com

  • Linux
  • Read more about Copying files with spaces in their names with xargs
  • Log in to post comments

Troubleshooting ssh connections

daniel —Fri, 05/02/2014 - 5:52pm

Including bad permissions on the server's user directory:

daveperrett.com

  • Linux
  • 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

  • Linux
  • Groovy
  • Java
  • Read more about Import OpenSSL certificate into java keystore on Ubuntu
  • Log in to post comments

Pages

  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Subscribe to RSS - Linux

Navigation

  • Search
  • Recent content
  • Contact Me
  • Mail
  • Pass Hasher
  • Bower Studios Admin

Quotes

daniel —Sat, 09/09/2006 - 10:11am

At any rate, I am convinced that He [God] does not play dice.

—

Albert Einstein

  • Log in to post comments
  • daniel's quotes

Popular content

Last viewed:

  • Work
  • Common Directory Layouts of a Java Project
  • Using SSL with an IP address instead of DNS
  • Creating an External configuration file for Logback in a Webapp (.war file)
  • Version Control with Talend Open Studio

Copyright 2022 Daniel Bower
  • My Lab
  • Family
  • Friends
  • Professional
  • About