Re: removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
Thank you very much Alexander for your help,because I had switched to debian 8 
again for three months because I didn't know how to boot in console mode debian 
9.so I have just installed again debian 9 and with  it boots in multi user mode(console) so I am happy :-)my 
problem is solved...
best regards
Stéphane 

Le Mardi 17 octobre 2017 21h07, Alexander V. Makartsev  
a écrit :
 

  Stephane asked for a help and got it. I also given him the best advice based 
on my experience with "startx" shell script.
 "$ sudo systemctl start display-manager.service" is most fail-safe command to 
start desktop environment from console session on any systemd-adopted distro.
 
 Here is some example disadvantages of using "startx":
 * "startx" often requires user to go extra mile and configure or keep track of 
changes in ~/.xinitrc ~/.xsessionrc scripts.
 * If you use Xfce and will start it by "startx" you will pass on display 
manager and greeter, and if you manually lock your session at some point with 
xflock4 you will get black screen without any way of unlocking it other than 
logging into another tty and doing it from console. This is understandable, 
because by using "startx" with Xfce you passed on session and seat management.
 * Some users could fire "sudo startx" at some point and give themselves a good 
chance to ruin their system.
 You can use whatever you want, as I already said it doesn't mean "startx" 
doesn't exist or work anymore, and you have to understand there is many ways to 
do something in Linux, but just any way doesn't always means it is the right 
way. To all respectable people, go ahead and grab pitchforks and torches there 
is somebody with different\wrong opinion on The Internets.
  
  
 On 17.10.2017 19:39, Greg Wooledge wrote:
  
 On Tue, Oct 17, 2017 at 07:32:11PM +0500, Alexander V. Makartsev wrote:
 
 Deprecated doesn't mean it doesn't exist or work anymore at all, it
means it isn't supported anymore and should not be used.
Look it up, it [startx] was deprecated for quite some time.
 
 Quoting from
https://www.debian.org/releases/stretch/amd64/release-notes/ch-whats-new.en.html

==
* Only the gdm3 display manager supports running X as a non-privileged
  user in stretch. Other display managers will always run X as
  root. Alternatively, you can also start X manually as a non-root user
  on a virtual terminal via startx.

When run as a regular user, the Xorg log will be available from
~/.local/share/xorg/.
==

Looks supported to me.
 
 
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 
 

   

Re: removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
OK thank you AlexanderI will try this...
bests regards
stephane
 

Le Mardi 17 octobre 2017 16h05, Alexander V. Makartsev <avbe...@gmail.com> 
a écrit :
 

  I think "startx" command is deprecated now and you shouldn't use it anymore. 
Right way to start DE is by starting display manager service.
 This command should work in your case:
     $ sudo systemctl start sddm.service
 
 
 
 On 17.10.2017 18:55, Stephane L wrote:
  
  Hi, Alexander I Want to boot debian 9 in multi user mode (console),then do 
something then and then to startx kde5/xorg with startx as I do with 
debian8/kde4
   
 
  Le Mardi 17 octobre 2017 14h46, Alexander V. Makartsev 
<avbe...@gmail.com> a écrit :
  
 
What are you trying to archieve? If you want to start DE you better launch 
it by starting your display manager (gdm in my case):
     $ sudo systemctl start gdm.service
 
 
  On 17.10.2017 17:24, Stephane L wrote:
  
 do I need too to make a .xinitrc with something like /usr/bin/startkde ? 
  
 
  Le Mardi 17 octobre 2017 14h11, Alexander V. Makartsev 
<avbe...@gmail.com> a écrit :
  
 
Assuming you have systemd, you have to change final target from  graphical 
to multi-user.
 This shows possible targets:
     $ sudo systemctl list-units --type=target 
 
 This will show what target is default:
     $ sudo systemctl get-default
 
 This will set default target to "console mode" you want:
     $ sudo systemctl set-default multi-user.target
 
 This will redo the changes if you ever will want to start DE  by default:
     $ sudo systemctl set-default graphical.target
 
 You have to reboot to apply changes.
 
 
 
  On 17.10.2017 16:59, Stephane L wrote:
  
  Hi I have tried to remove sddm from /etc/init.d but  it starts always with 
sddm.I want to boot my debian 9 in console mode  and do startx to launch kde5 
as I do with debian 8  and kde4.does anyone know exactly how to do that ?  
  
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

   
 
  
  
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

   
 
  
 
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

 

   

Re: removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
Hi, AlexanderI Want to boot debian 9 in multi user mode (console),then do 
something then and then to startx kde5/xorg with startx as I do with 
debian8/kde4
 

Le Mardi 17 octobre 2017 14h46, Alexander V. Makartsev <avbe...@gmail.com> 
a écrit :
 

  What are you trying to archieve? If you want to start DE you better launch it 
by starting your display manager (gdm in my case):
     $ sudo systemctl start gdm.service
 
 
 On 17.10.2017 17:24, Stephane L wrote:
  
 do I need too to make a .xinitrc with something like /usr/bin/startkde ? 
  
 
  Le Mardi 17 octobre 2017 14h11, Alexander V. Makartsev 
<avbe...@gmail.com> a écrit :
  
 
Assuming you have systemd, you have to change final target from graphical 
to multi-user.
 This shows possible targets:
     $ sudo systemctl list-units --type=target 
 
 This will show what target is default:
     $ sudo systemctl get-default
 
 This will set default target to "console mode" you want:
     $ sudo systemctl set-default multi-user.target
 
 This will redo the changes if you ever will want to start DE by default:
     $ sudo systemctl set-default graphical.target
 
 You have to reboot to apply changes.
 
 
 
  On 17.10.2017 16:59, Stephane L wrote:
  
  Hi I have tried to remove sddm from /etc/init.d but it starts always with 
sddm.I want to boot my debian 9 in console mode and do startx to launch kde5 as 
I do with debian 8 and kde4.does anyone know exactly how to do  that ?  
  
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

   
 
  
 
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

 

   

Re: way of starting a firewall script in debian 9 with kde5 and sddm

2017-10-17 Thread Stephane L
thank you very much ben, I will try this toobests regards
stephane


Le Mardi 17 octobre 2017 14h26, Ben Caradoc-Davies <b...@transient.nz> a 
écrit :
 

 On 18/10/17 01:08, Stephane L wrote:
> Hi,I have a firewall script(firewall) that I laucnh with Is 
> there a way in debian 9 (with kde5 and sddm) to start this script at the boot 
> of the linux system or at the launching of xorg or of kde5 ?

systemd units are easy to write (this is the main benefit of systemd) 
and can be configured run at boot time. Here is one I wrote for 
iptables+ip6tables (because I do not want changes to persist across 
boots, just clean rules on boot). You will need a different Type if your 
program does not exit:

$ cat /etc/iptables/iptables.service
[Unit]
Description=iptables rules
After=network.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c "/sbin/iptables-restore < 
/etc/iptables/iptables.rules"
ExecStart=/bin/bash -c "/sbin/ip6tables-restore < 
/etc/iptables/ip6tables.rules"
RemainAfterExit=yes
ExecStop=/sbin/iptables -F
ExecStop=/sbin/ip6tables -F
[Install]
WantedBy=multi-user.target

I enabled it with:

systemctl enable /etc/iptables/iptables.service

This should add the required symlink in /etc/systemd/system .

Kind regards,

-- 
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand



   

Re: removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
do I need too to make a .xinitrc with something like /usr/bin/startkde ? 
 

Le Mardi 17 octobre 2017 14h11, Alexander V. Makartsev <avbe...@gmail.com> 
a écrit :
 

  Assuming you have systemd, you have to change final target from graphical to 
multi-user.
 This shows possible targets:
     $ sudo systemctl list-units --type=target 
 
 This will show what target is default:
     $ sudo systemctl get-default
 
 This will set default target to "console mode" you want:
     $ sudo systemctl set-default multi-user.target
 
 This will redo the changes if you ever will want to start DE by default:
     $ sudo systemctl set-default graphical.target
 
 You have to reboot to apply changes.
 
 
 
 On 17.10.2017 16:59, Stephane L wrote:
  
  Hi I have tried to remove sddm from /etc/init.d but it starts always with 
sddm.I want to boot my debian 9 in console mode and do startx to launch kde5 as 
I do with debian 8 and kde4.does anyone know exactly how to do that ?  
 
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

 

   

Re: removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
thank you very much alexander I will try this. 

Le Mardi 17 octobre 2017 14h11, Alexander V. Makartsev <avbe...@gmail.com> 
a écrit :
 

  Assuming you have systemd, you have to change final target from graphical to 
multi-user.
 This shows possible targets:
     $ sudo systemctl list-units --type=target 
 
 This will show what target is default:
     $ sudo systemctl get-default
 
 This will set default target to "console mode" you want:
     $ sudo systemctl set-default multi-user.target
 
 This will redo the changes if you ever will want to start DE by default:
     $ sudo systemctl set-default graphical.target
 
 You have to reboot to apply changes.
 
 
 
 On 17.10.2017 16:59, Stephane L wrote:
  
  Hi I have tried to remove sddm from /etc/init.d but it starts always with 
sddm.I want to boot my debian 9 in console mode and do startx to launch kde5 as 
I do with debian 8 and kde4.does anyone know exactly how to do that ?  
 
 -- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀ 
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄ 

 

   

Tr : new command in replacement for iptables in debian 9 ?

2017-10-17 Thread Stephane L
thank you ben, it is probably nftables.my problem is solved ...

 Le Mardi 17 octobre 2017 14h03, Stephane L <stephane...@yahoo.fr> a écrit :
 

 Hi,
Is there a new command to replace iptables in debian 9 ? I have read something 
like that
best regards



   

way of starting a firewall script in debian 9 with kde5 and sddm

2017-10-17 Thread Stephane L
Hi,I have a firewall script(firewall) that I laucnh with Is 
there a way in debian 9 (with kde5 and sddm) to start this script at the boot 
of the linux system or at the launching of xorg or of kde5 ?
Thanks


new command in replacement for iptables in debian 9 ?

2017-10-17 Thread Stephane L
Hi,
Is there a new command to replace iptables in debian 9 ? I have read something 
like that
best regards



removing of sddm (debian 9 -kde5) to start in console mode then startx to start kde5

2017-10-17 Thread Stephane L
Hi I have tried to remove sddm from /etc/init.d but it starts always with 
sddm.I want to boot my debian 9 in console mode and do startx to launch kde5 as 
I do with debian 8 and kde4.does anyone know exactly how to do that ?