Slackware / Linux

If you've installed a full Slackware installation you should've
alredy Apache and MySql in your system.

Lets edit some files:
vim /etc/httpd/httpd.conf
at the line DirectoryIndex index.html change to index.php

index

at he line ServerAdmin insert your email address

admin

uncomment (remove #) the line Include /etc/httpd/mod_php.conf

php

then save and exit with :wq

Edit timezone: vim /etc/httpd/php.ini
uncomment the line and add a zone: date.timezone = Europe/Rome (choose yours)

save and exit

Now run Mysql as root:

mysql_install_db --user=mysql

/etc/rc.d/rc.mysqld start

then /usr/bin/mysql_secure_installation to set password and other settigs.

chmod 755 /etc/rc.d/rc.mysqld

resart with /etc/rc.d/rc.mysqld restart

restart Apache with apachectl restart

Download Joomla installation package and unzip all the content in a folder, now as root
copy in /srv/httpd/htdocs all the folders and files with cp -r * /srv/httpd/htdocs.

With you browser and go to http://localhost where you will find the Joomla
installation procedure, once finished it will promt you to delete the installation folder:

page
so as root type rm -r /srv/httpd/htdocs/installation, now you can click on site or administrator
to build your offline site.

bbackend

For further info read the official Slackware Apache docs at:
http://docs.slackware.com/howtos:network_services:setup_apache_php_mysql

ls is used to get a list of files/folders in the current directory:

ls -l gives a vertical list with a lot of information(not covered here)

ls-l

 

if you want to get a list from another directory, pass the path after the command, like:

ls -l /usr/bin

if you want to see hidden files too, simply add -a like: ls -l -a or ls -la,hidden files/folders

are those with a dot prefix:

ls-la

for all the options read the manual with man ls.

 

pwd says the folder where you are:

pwd

more info with man pwd.

 

cd is used to get inside/outside of a folder like: cd /home/user/Desktop, if you want to step back

of one to go to the /home/user folder simply type cd .., for more commands type man cd.

 

cp is used to copy files (folders with -r) from a folder to another:

cp /home/user/Desktop/file1.txt /home/user/Documents copies one file only

 

you can copy an entire folder with cp -r /home/user/Desktop/mp3 /home/user/Music, now

you have a the folder mp3 inside the folder Documents

 

if you want the content of the mp3 folder inside the Music folder use

cp /home/user/Desktop/mp3/* /home/user/Music. ls -l shows the content:

mp3

more options on the manual man cp.

 

mv move (used for rename too) files/folders, mv file1 file2 renames file1 to file2 mv file1 /home/user/Documents moves the file from current folder to Documents folder.

Type man mv for more options.

 

free check the RAM / swap usage, free -om displays values in megabytes:

free

more info with man free.

 

df displays disks usage, df -h displays auto Kilo/Mega/Gigasuddivision:

df

check man df for more info.

 

touch creates a file, touch myfile creates a file named myfile in the working derectory.

more option in the manual man touch.

 

mkdir creates a folder, mkdir newfolder creates a folder named newfolder in the actual directory.

more option in the manual man mkdir.

 

chmod changes the permissions in witch users interact with a file, for example you are the owner of the file and you have read and write permission, standard users shouldn’t write and execute that file.

You can pass 3 paramaters (numbers) which are combined values of:

4 read

2 write

1 execute

so you execute chmod 744 myfile which means4+2+1(7) for the owner, 4 for the usergroup, 4 for the world.

When you execute ls -l the left part of the info gives you the explanation of what is going on

-rwxr--r-- 1 embedded users 0 Dec 6 00:04 myfile

- means file (folder would be d) rwx is read/write/execute for the owner, r-- read only for the usergroup, r-- read only for the world, date and time of ‘last modified’ and filename.

chmod --help and man chmod give you more info.

 

date prints date and time, date --help and man date for more info.

 

cal prints the calendar.

   x joomla                    x car-mp3               x commands  

 

  x slack usb-uefi    x format

 

You need this package if you only want to boot in UEFI mode with a USB stick, if you also need

to install Slackware from the USB stick, find your Slackware version here and follow the instruction below.

810

You need admin privileges with sudo or su.

Check your target device with fdisk -l and create the UEFI GPT partition:

gdisk /dev/sdx
n for new
1 partinion 1
enter on default start sector
+100M for partition length
ef00 as a partition code

Now we will create the Linux installation partition:

n for new
2 (second partition)
enter on default starting sector
enter on ending starting sector, that means we will use all the remaining space of the HDD
8300 as a partition code (Linux)

w (write changes)
enter to write changes.

At this poin we have a GPT partition scheme with:

sdx1 (UEFI partition)
sdx2 (Linux partition for installation files)

and its time to format:

mkfs.vfat /dev/sdx1 (this will format in FAT32 the UEFI partition)
mkfs.ext4 /dev/sdx2 (this will format in EXT4 the Linux partition)

Now that we have the 'containers', we have to mount the UEFI partition on a local folder:
mkdir UEFI && mount /dev/sdx1 UEFI
mkdir UEFI/EFI && mkdir UEFI/EFI/BOOT

At the beginning of this page you should have downloaded the required package, copy it

in the same folder you are working in and:

tar xvzf SlackEfiUsbBoot.tar.gz to untar and copy all the stuff with:

cp SlackEfiUsbBoot/* UEFI/EFI/BOOT

then we copy the slackware iso in the second partition with:
dd bs=1M if=/Slackware.iso of=/dev/sdx2

At the end of this, unmount the firts volume with:
umount /dev/sdx1
remove the thumbdrive you are done.

This thumb drive will boot in UEFI motherboard and you will have the option to install Slackware on that machine.

I do like to use EXT4 for all my computers filesystems, anyway car MP3 players adn other commercial products only support

FAT32(LBA) system.

With Linux we have the fdisk and mkfs commands to do the job.

Switch to root with su or sudo and find your volume with fdsik -l

fdisk

Now create a partition table with FAT32(LBA) system with fdisk /dev/sdc then:

o (erase old partitions)

n (new partition)

p (primary)

1 (firts partition)

ok (fisrts sector)

ok (last sector(entire volume))

t (partition type)

c (FAT32 LBA)

w (write changes and exit)

partition

The partition table is now ok, time to format with mkfs.vfat /dev/sdc1

format


Here we are, now you should see the device on your file manager (if not disconnect / reconnect the device), copy your music inside and you are done.

copy