diff --git a/scripts/common_packages.txt b/scripts/common_packages.txt index 2048b8239..63a6f1dd3 100644 --- a/scripts/common_packages.txt +++ b/scripts/common_packages.txt @@ -46,6 +46,7 @@ pciutils psmisc python python3 +rar rsync rsyslog ssh @@ -57,6 +58,7 @@ tig traceroute tree tzdata +unrar unzip usbutils wget diff --git a/scripts/dconfig.txt b/scripts/dconfig.txt index 3057624f1..fb66080cc 100644 --- a/scripts/dconfig.txt +++ b/scripts/dconfig.txt @@ -11,9 +11,16 @@ delay=uint32 350 unicode-hotkey=@as [] hotkey=@as [] +[apps/update-manager] +launch-time=int64 1557136088 +launch-count=1 +first-run=false + [org/gnome/desktop/peripherals/touchpad] +natural-scroll=false two-finger-scrolling-enabled=true disable-while-typing=false +click-method='none' [org/gnome/login-screen] enable-smartcard-authentication=false @@ -31,6 +38,7 @@ disable-external=true [org/gnome/desktop/interface] gtk-im-module='gtk-im-context-simple' +show-battery-percentage=true clock-show-seconds=true enable-animations=false cursor-blink=false @@ -98,8 +106,12 @@ active=false active=false [org/gnome/settings-daemon/plugins/power] +sleep-inactive-battery-type='nothing' sleep-inactive-ac-type='nothing' +idle-dim=false +sleep-inactive-battery-timeout=0 sleep-inactive-ac-timeout=0 +ambient-enabled=false [org/gnome/shell] enable-hot-corners=true diff --git a/scripts/go.sh b/scripts/go.sh index c3a27a4ae..0fafed829 100755 --- a/scripts/go.sh +++ b/scripts/go.sh @@ -17,6 +17,7 @@ do PATH=$PATH:$GOPATH/bin alias gobuild='CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w"' EOF + echo 'GOPATH=$HOME/go' >> $DIR/.profile # Fix rights USR=$(echo "$DIR" | rev | cut -d/ -f1 | rev) diff --git a/scripts/install_client.sh b/scripts/install_client.sh index f91b40220..a5d2db866 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -3,8 +3,7 @@ # Configure Z01 client # Log stdout & stderr -exec > >(tee -i /tmp/install_client.log) -exec 2>&1 +exec > >(tee -i /tmp/install_client.log) 2>&1 SCRIPT_DIR="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" cd $SCRIPT_DIR @@ -51,6 +50,9 @@ xfsprogs apt-get -y install $PKGS +# Install additional drivers +ubuntu-drivers install + # Remove fsck because the system partition will be read-only (overlayroot) rm /usr/share/initramfs-tools/hooks/fsck diff --git a/scripts/ubuntu_tweaks.sh b/scripts/ubuntu_tweaks.sh index a1d4e139f..48f5d1a7b 100755 --- a/scripts/ubuntu_tweaks.sh +++ b/scripts/ubuntu_tweaks.sh @@ -28,8 +28,8 @@ sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop # Remove password complexity constraints sed -i 's/ obscure / minlen=1 /g' /etc/pam.d/common-password -# Remove splash screen (plymouth) and hide kernel output -sed -i 's/quiet splash/quiet vt.global_cursor_default=0 console=ttyS0/g' /etc/default/grub +# Remove splash screen (plymouth) +sed -i 's/quiet splash/quiet/g' /etc/default/grub update-initramfs -u update-grub @@ -39,9 +39,6 @@ swapoff /swapfile || true rm -f /swapfile sed -i '/swapfile/d' /etc/fstab -# Prevent gnome-shell segfault from happening -sed -i 's/#WaylandEnable=false/WaylandEnable=false/g' /etc/gdm3/custom.conf - # Purge unused Ubuntu packages PKGS=" apport @@ -62,6 +59,7 @@ popularity-contest python3-update-manager secureboot-db snapd +speech-dispatcher* spice-vdagent ubuntu-report ubuntu-software diff --git a/subjects/boolean.en.md b/subjects/boolean.en.md index ff2a3e489..b6dce5574 100644 --- a/subjects/boolean.en.md +++ b/subjects/boolean.en.md @@ -1,12 +1,17 @@ -## Boolean +## boolean ### Instructions -Create a `.go` file and copy the code below into that file -and add the code necessary so the program works. +Create a `.go` file. + +- The code below has to be copied in that file. + +- The necessary changes have to be applied so that the program works. - The program must be submitted inside a folder with the name `boolean`. +### Code to be copied + ```go func printStr(str string) { arrayStr := []rune(str) diff --git a/subjects/boolean.fr.md b/subjects/boolean.fr.md index 2c23b376a..67b64856a 100644 --- a/subjects/boolean.fr.md +++ b/subjects/boolean.fr.md @@ -1,10 +1,17 @@ -## Boolean +## boolean ### Instructions -Create a `.go` file and copy the code below into our file +Créer un fichier `.go`. -- The main task is to return a working program. +- Le code ci-dessous doit être copié dans ce fichier. + +- Les changements nécéssaires doivent être appliquer et the code below into that file + and do the necessary changes so that the program works. + +- Le programme doit être rendu dans un dossier nommé `boolean`. + +### Code à copier ```go func printStr(str string) { @@ -33,14 +40,12 @@ func main() { } ``` -### Expected output +### Usage ```console +student@ubuntu:~/student/boolean$ go build +student@ubuntu:~/student/boolean$ ./boolean "not" "odd" I have an even number of arguments -``` - -### Or - -```console +student@ubuntu:~/student/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/cat.en.md b/subjects/cat.en.md index 16aa6c235..496c55c67 100644 --- a/subjects/cat.en.md +++ b/subjects/cat.en.md @@ -1,29 +1,27 @@ -## Cat +## cat ### Instructions -Write a program that does the same thing as the system's `cat` command-line. +Write a program that has the same behaviour as the system's `cat` command-line. -- You don't have to handle options. +- The `options` do not have to be handled. -- But if just call the program with out arguments it should take a input and print it back +- If the program is called without arguments it should take the `input` and print it back. - In the program folder create two files named `quest8.txt` and `quest8T.txt`. -- Copy to the `quest8.txt` file this : +- Copy to the `quest8.txt` file the following sentence : - - "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing +`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing` -- Copy to the `quest8T.txt` file this : +- Copy to the `quest8T.txt` file the following sentence : - - "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." +`"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` -- In case of error it should print the error. +- In case of error the program should print the error. - The program must be submitted inside a folder with the name `cat`. -### Output: - ```console student@ubuntu:~/student/cat$ go build student@ubuntu:~/student/cat$ ./cat diff --git a/subjects/cat.fr.md b/subjects/cat.fr.md index e285e01be..b234565c8 100644 --- a/subjects/cat.fr.md +++ b/subjects/cat.fr.md @@ -1,26 +1,26 @@ -## Cat +## cat ### Instructions -Write a program that does the same thing as the system's `cat` command-line. +Écrire un programme qui a le même comportement que la ligne de commande `cat`. -- You don't have to handle options. +- Les `options` ne doivent pas être gérés. -- But if just call the program with out arguments it should take a input and print it back +- Si le programme est éxécuté sans arguments il doit prendre l'`input` et l'afficher. -- In the program folder create two files named `quest8.txt` and `quest8T.txt`. +- Dans le dossier du programme créer deux fichiers nommés `quest8.txt` et `quest8T.txt`. -- Copy to the `quest8.txt` file this : +- Copier dans le fichier `quest8.txt` la phrase suivante : - - "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing +`"Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing` -- Copy to the `quest8T.txt` file this : +- Copier dans le fichier `quest8T.txt` la phrase suivante : - - "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." +`"Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence."` -- In case of error it should print the error. +- En cas d'erreur le programme doit imprimer l'erreur. -### Output: +### Utilisation: ```console student@ubuntu:~/student/test$ go build diff --git a/subjects/displayfile.en.md b/subjects/displayfile.en.md index f72987fff..97153fc1f 100644 --- a/subjects/displayfile.en.md +++ b/subjects/displayfile.en.md @@ -2,17 +2,17 @@ ### Instructions -Write a program that displays, on the standard output, only the content of the file given as argument. +Write a program that displays, on the standard output, the content of a file given as argument. -- Create a file `quest8.txt` and write into the file `Almost there!!` +- Create a file `quest8.txt` and write nito it the sentence `Almost there!!` -- The argument of the program should be the name of the file, in this case, `quest8.txt`. +- The argument of the program in this case should be, `quest8.txt`. -- In case of error it should print: +- In case of error the program should print one the below messages accordingly: - `File name missing`. - `Too many arguments`. -### Output: +### Usage: ```console student@ubuntu:~/student/displayfile$ go build diff --git a/subjects/displayfile.fr.md b/subjects/displayfile.fr.md index 1f1bce848..b117240c3 100644 --- a/subjects/displayfile.fr.md +++ b/subjects/displayfile.fr.md @@ -2,17 +2,17 @@ ### Instructions -Write a program that displays, on the standard output, only the content of the file given as argument. +Écrire un programme qui affiche, sur la sortie standard, le contenu d'un fichier donné en argument. -- Create a file `quest8.txt` and write into the file `Almost there!!` +- Créer un fichier `quest8.txt` et écrire dedans la phrase `Almost there!!` -- The argument of the program should be the name of the file, in this case, `quest8.txt`. +- L'argument pour ce programme sera, dans ce cas, `quest8.txt`. -- In case of error it should print: +- En cas d'erreur le programme doit afficher un des deux messages suivants de manière approprié: - `File name missing`. - `Too many arguments`. -### Output: +### Utilisation: ```console student@ubuntu:~/student/test$ go build diff --git a/subjects/point.en.md b/subjects/point.en.md index d74ce5d5d..f91b29bad 100644 --- a/subjects/point.en.md +++ b/subjects/point.en.md @@ -1,12 +1,17 @@ -## Point +## point ### Instructions -Create a `.go` file and copy the code below into our file -and add the code necessary so the program works. +Create a `.go` file. + +- The code below has to be copied in that file. + +- The necessary changes have to be applied so that the program works. - The program must be submitted inside a folder with the name `point`. +### Code to be copied + ```go func setPoint(ptr *point) { ptr.x = 42 diff --git a/subjects/point.fr.md b/subjects/point.fr.md index ba6b426e1..326af58ba 100644 --- a/subjects/point.fr.md +++ b/subjects/point.fr.md @@ -1,10 +1,17 @@ -## Point +## point ### Instructions -Create a `.go` file and copy the code below into our file +Créer un fichier `.go`. -- The main task is to return a working program. +- Le code ci-dessous doit être copié dans ce fichier. + +- Les changements nécéssaires doivent être appliquer et the code below into that file + and do the necessary changes so that the program works. + +- Le programme doit être rendu dans un dossier nommé `boolean`. + +### Code à copier ```go func setPoint(ptr *point) { @@ -17,12 +24,11 @@ func main() { setPoint(points) - fmt.Printf("x = %d, y = %d",points.x, points.y) - fmt.Println() + fmt.Printf("x = %d, y = %d\n",points.x, points.y) } ``` -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build diff --git a/subjects/ztail.en.md b/subjects/ztail.en.md index 015a9c5d5..231235c57 100644 --- a/subjects/ztail.en.md +++ b/subjects/ztail.en.md @@ -2,12 +2,12 @@ ### Instructions -Write a program called ztail that does the same thing as the system command tail, but witch takes at least one file as argument. +Write a program called `ztail` that has the same behaviour as the system command `tail`, but which takes at least one file as argument. -The only option you have to handle is -c. This option will be used in all tests. +- The only option to be handled is `-c`. This option will be used in all tests. -For this program you can use the "os" package. +- For this program the "os" package can be used. -For the program to pass the test you should follow the convention for the return code of program in Unix sistems (see os.Exit) +- For the program to pass the tests the convention for the return code of program in Unix systems should be followed (see os.Exit). -For more information consult the man page for tail. +- For more information consult the man page for `tail`. diff --git a/subjects/ztail.fr.md b/subjects/ztail.fr.md index 015a9c5d5..8166d2875 100644 --- a/subjects/ztail.fr.md +++ b/subjects/ztail.fr.md @@ -2,12 +2,12 @@ ### Instructions -Write a program called ztail that does the same thing as the system command tail, but witch takes at least one file as argument. +Écrire un programme `ztail` qui a le même comportement que la ligne de commande `tail`, mais qui prend au moins 1 fichier comme argument. -The only option you have to handle is -c. This option will be used in all tests. +- La seule option qui doit être géré est `-c`. Cette option sera utilisé dans tous les tests. -For this program you can use the "os" package. +- Pour ce programme le package "os" peut être utilisé. -For the program to pass the test you should follow the convention for the return code of program in Unix sistems (see os.Exit) +- Pour que le programme passe les tests la convention pour le retour code de programme en systémes Unix devra être suivi(voir os.Exit). -For more information consult the man page for tail. +- Pour plus d'informtations consulter la page du man de `tail`.