Arkiv

Arkiv för ‘Linux’ Kategori

Linux dist ”Chapeau”

juli 12th, 2019 Inga kommentarer

Chapeau is a high-performance, cutting-edge operating system built from the GNU/Linux distribution Fedora Workstation with the GNOME desktop environment. In comparison to Fedora, Chapeau adopts a more relaxed approach to software licences and is intended to be just as useful for advanced users as it is easy for those new to using a Linux system. There is built-in access to third-party software and sources repositories not included in Fedora such as RPMFusion, DropBox, Steam, Adobe Flash and Oracle VirtualBox. Chapeau also includes pre-installed core packages to make the installation of new kernel modules pain-free, built-in remote and virtual system management tools, a selection of maintenance tools that come in especially handy when running Chapeau’s live image on a DVD or USB drive to analyse and fix broken systems.

DistributionChapeau
Home Pagehttp://chapeaulinux.org/
User Forumshttp://chapeaulinux.org/forums
Categories: Linux, Okategoriserade Taggar:

Formattera en USB-pinne i Ubuntu

augusti 11th, 2012 Inga kommentarer

Kolla först vilken enhetsnamn pinnen har. Starta ett terminalfönster och skriv:

sudo fdisk -l

eller

mount

Sedan när du kollat namnet måste du avmontera pinnen. I mitt fall hette enheten för USB-pinnen /dev/sdb

umount /dev/sdb

Formattera nu pinnen. Jag väljer att formattera den med VFAT så den går att använda i Windows m.fl. operativsystem.

sudo mkfs.vfat /dev/sdb1

Om du vill döpa om namnet på pinnen i kommandoradsläge kan du installera mtools

sudo apt-get install mtools

Sedan kan det vara bra idé att hoppa över mtoolskontrollen av pinnen då man ibland får ett felmeddelande not a multiple of sectors per track (62)

echo mtools_skip_check=1 >> ~/.mtoolsrc

Döp sedan om USB-pinnen med följande kommando

sudo mlabel -i /dev/sdb1 ::namn

Klart!

Referenser:

http://www.cyberciti.biz/faq/howto-format-usb-pen-drive/

https://help.ubuntu.com/community/RenameUSBDrive

Categories: Bash, Linux Taggar:

Installera VM-ware Tools i Ubuntu Server

augusti 11th, 2012 Inga kommentarer

Installing VMware Tools in Ubuntu Server 9.10

1. Install software needed by VMware Tools

Install packages to build the kernel modules

sudo apt-get install autoconf automake binutils make cpp gcc linux-headers-$(uname -r)

2. Find out where the kernel headers are (you may need this later)

ls -d /usr/src/linux-headers-$(uname -r)*/include

i.e. /usr/src/linux-headers-2.6.31-14-generic-pae/include

i.e. /lib/modules/2.6.31-14-generic-pae/build/include

3. Get the kernel source

sudo apt-get build-dep linux-image-$(uname -r)

sudo apt-get source linux-image-$(uname -r)

2. Prepare and install VMware Tools

1. From VMware Workstation: go to VM> Install VMware Tools

2. From the VM: mount the virtual cd drive

sudo mount /dev/cdrom /mnt/

3. Extract VMware Tools to /tmp/

tar -C /tmp -zxvf /mnt/VMwareTools-5.5.3-34685.tar.gz

4. Unmount the virtual cd drive

sudo umount /mnt/

5. Now run the installer

cd /tmp/vmware-tools-distrib

sudo ./vmware-install.pl

6. When asked Do you want to run vmware-config-tools.pl?, answer ”Yes”.

3. Run VMware Tools from X

1. Run /usr/bin/vmware-toolbox

Ref: http://www.thoughtpolice.co.uk/vmware/howto/ubuntu-server-6.10-edgy-eft-vmware-tools-install.html

Ref: https://help.ubuntu.com/community/Kernel/Compile

Categories: Linux Taggar:

Prepare Linux for source compile

augusti 11th, 2012 Inga kommentarer

1. Install packages to build the kernel modules

sudo apt-get install autoconf automake binutils make cpp gcc linux-headers-$(uname -r)

2. Find out where the kernel headers are (you may need this later)

ls -d /usr/src/linux-headers-$(uname -r)*/include

i.e. /usr/src/linux-headers-2.6.31-14-generic-pae/include

i.e. /lib/modules/2.6.31-14-generic-pae/build/include

3. Get the kernel source

sudo apt-get build-dep linux-image-$(uname -r)

sudo apt-get source linux-image-$(uname -r)

Categories: Bash, Linux, Programmering, Ubuntu Taggar:

Bra Linuxkommandon

augusti 11th, 2012 Inga kommentarer

top -s (Visar vilka processer som tar mest processorkraft)

ps (Visar aktuella processer)

ps -A|more (Visar alla processer)

ps -eaf | grep -i smb (visar vilken användare/rättighet en process (smb) körs med)

find / -name foo (Sök efter en fil i alla mappar)

hostname (visar hostname / ändrar temporärt hostname)

/etc/hostname (textfil med hostname i Debian, ändra för att ändra host perm.)

sudo /etc/init.d/hostname.sh (kör detta skript för att ladda in hostnamn, Debian)

setxkbmap se (Byter till svenskt tangentbord i Ubuntu)

tail -f file.log (Visar en textfil kontinuerligt. Avbryt med CTRL+C)

iostat -x 5 (visar hårddisk prestanda var 5e sekund) kräver paket ”sysstat”

lsusb – listar USB enheter

lshal – info om hårdvara

lsattr – lista filattribut i ext2 filsystem

lshw – lista HW info, kör som root

lshw -html > datorinfo.htm – skapar HTML sida med HW info

lsmod – listar vilka kärnmoduler som laddats

lsof – listar öppna filer

lspcmcia – listar PC-Card

Ref: http://webtools.live2support.com/linux/top.php

Förnya DHCP-adress: sudo dhclient

alt.2: sudo /etc/init.d/networking restart

alt.3: ifdown eth0 && ifup eth0

—————————————-

Byt till statisk IP på Ubuntu server:

Ref: http://www.howtogeek.com/howto/ubuntu/change-ubuntu-server-from-dhcp-to-a-static-ip-address/

Edit file: sudo nano /etc/network/interfaces

Change to your info:

auto eth0

iface eth0 inet static

address 192.168.1.100

netmask 255.255.255.0

network 192.168.1.0

broadcast 192.168.1.255

gateway 192.168.1.1

Add in the DNS: sudo nano /etc/resolv.conf

Remove the dhcp client: sudo apt-get remove dhcp3-client (or dhcp-client)

Restart net: sudo /etc/init.d/networking restart

—————————————-

Omkonfig Ubuntu Desktop: sudo dpkg –configure -a

Konfig X grafik: sudo dpkg-reconfigure xserver-xorg

Kolla Direct Rendering: glxinfo | grep rendering

Starta run-level 1 Recovery mode: sudo init 1

Avsluta Recovery mode: init 2

Uppdatera program och Ubuntu:

apt-get update (synkroniserar lista över program)

apt-get upgrade (uppdaterar alla installerade program till senaste versionen

apt-get dist-upgrade (uppdaterar till senaste, stabila versionen av Ubuntu)

Ändra grafikinställningar i Ubuntu: http://ubuntuforums.org/showthread.php?t=83973

Categories: Linux Taggar:

Pash PowerShell open source reimplementation

augusti 11th, 2012 Inga kommentarer

For Mac, Linux, Solaris, etc… and Windows (including Windows Mobile and Windows CE):

http://pash.sourceforge.net/

Categories: Linux, Mac Taggar:

Swap in Linux

augusti 11th, 2012 Inga kommentarer

Good article about swap files in Linux / Debian / Ubuntu:

http://www.linux.com/news/software/applications/8208-all-about-linux-swap-space

Categories: Linux Taggar:

Repair Mac OS via Linux

augusti 11th, 2012 Inga kommentarer

First of all, you must have a copy of the physical disk image, in case the tool destroy all the data (you never know).

So, take another big disk and make a dd of it (or, better, a forensics dd: ddrescue for example http://www.forensicswiki.org/wiki/Ddrescue ).

dd if=/dev/hda of=mybigfile.img bs=65536 conv=noerror,sync

after that, put your mybigfile.img in a secure place.

Second, if the hardware is defective, you must use a good disk, and restore your disk image on it:

dd if=mybigfile.img of=/dev/hdx bs=65536

After that, you must use a recovery tool. You can check many recovery tools, but in the first place I would try with fsck.hfs ( http://linux.die.net/man/8/fsck.hfs ).

I can’t suggest you any other hfs+ recovery tool, because I didn’t have the need to use it. Try a look on internet, and always work on a COPY of the IMAGE you made on the first step!

/HappyCactus

to change the permissions you need to be a super-user (root).

You accomplish this by typing ’sudo su’, and then the password for your account. This makes you root.

Next, execute the command: chmod -R 777 /path/to/your/mounted/devi

ce.

That will remove the perimssions restrictions from every file on the disk.

/DrDamnit

Categories: Linux, Mac Taggar:

DNS-323 SSH

augusti 11th, 2012 Inga kommentarer

För att lägga till SSH stöd i DNS-323:

http://www.bergek.com/2008/11/13/dlink-dns-323-part-3-fonz-fun_plug/

För att lägga in ett RSYNC jobb via CRON:

http://wiki.dns323.info/howto:backup

DNS323 + Duplicity = Encrypted Offsite Backup BLISS!:

http://www.drak0.com/2008/06/09/dns323-duplicity-encrypted-offsite-backup-bliss/

Modding Cron on the D-Link DNS-323 using funplug-0.3:

http://techblog357.blogspot.com/2007/08/modding-cron-on-d-link-dns-323-using.html

Modding ’crontab’ on Fujitsu Q700:

vi /etc/config/crontab

crontab /etc/config/crontab

Categories: Bash, Linux Taggar:

Installera gnomenu i Ubuntu 10.04

augusti 11th, 2012 Inga kommentarer

Öppna en terminal.

sudo apt-add-repository ppa:gnomenu-team/ppa

sudo aptitude update

sudo aptitude install gnomenu

_______________________________

Andra tips: Snygga upp GRUB menyn med BURG:

http://www.ubuntugeek.com/how-to-change-your-grub-loader-view-using-burg.html

Ubuntu Tweak:

http://ubuntu-tweak.com/

Categories: Linux Taggar: